package designMode.templatePattern;

/**
 * @author LIBOFEI
 * @ClassName Tea
 * @description
 * @date 2020/6/26 14:25
 * @Version 1.0
 **/
public class Tea {

    //茶流程
    public void prepareRecipe(){
        boilWater();
        brewTea();
        addLemon();
        pourInCup();
    }

    public void boilWater(){
        System.out.println("烧水");
    }

    public void brewTea(){
        System.out.println("拿茶");
    }

    public void addLemon(){
        System.out.println("加柠檬");
    }

    public void pourInCup(){
        System.out.println("倒进杯子");
    }
}
